<template>
  <div class="wrapper">
    <input type="text" v-model="menu" />
    <button @click="handleCreate">新增菜</button>
  </div>
</template>
<script setup>
import { defineEmits, ref } from "vue";

const menu = ref("");
const emit = defineEmits(["addMenu"]);

const handleCreate = () => {
  emit("addMenu", menu.value);
};
</script>
<style></style>
